package com.ruoyi.shoppingcar.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 shoppingcar
 * 
 * @author ruoyi
 * @date 2024-07-22
 */
public class Shoppingcar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车编号 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 学生编号 */
    @Excel(name = "学生编号")
    private Long studentId;

    /** 菜品编号 */
    @Excel(name = "菜品编号")
    private Long dishId;

    /** 分类 */
    @Excel(name = "分类")
    private String dishflavor;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    /** 0为未删除，1为已删除 */
    @Excel(name = "0为未删除，1为已删除")
    private String isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }
    public void setDishflavor(String dishflavor) 
    {
        this.dishflavor = dishflavor;
    }

    public String getDishflavor() 
    {
        return dishflavor;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("studentId", getStudentId())
            .append("dishId", getDishId())
            .append("dishflavor", getDishflavor())
            .append("number", getNumber())
            .append("amount", getAmount())
            .append("picture", getPicture())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
